using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;

namespace OpenProject.DataObjects
{
    /// <summary>
    /// Controller class for Project
    /// </summary>
    public partial class ProjectController
    {
        [DataObjectMethod(DataObjectMethodType.Select, false)]
        public static Project FetchByProjectTitle(string ProjectTitle)
        {
            return new Project(Project.Columns.Title, ProjectTitle);
        }
        public static int ProjectIdFromProjectTitle(string projectTitle)
        {
            return  FetchByProjectTitle(projectTitle).ProjectId;
        }
    }
}
